package com.woniuxy.social.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 关注列表
 * </p>
 *
 * @author John_Yeung
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("FOLLOWERS")
@ApiModel(value="Followers对象", description="关注列表")
@KeySequence("SEQ_FOLLOWERS")
@NoArgsConstructor
@AllArgsConstructor
public class Followers implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关注列表主键id")
    @TableId(value = "FOLLOWER_ID" , type = IdType.INPUT)
    private Long followerId;

    @ApiModelProperty(value = "用户id")
    @TableField("COMMUNITY_ID")
    private Integer communityId;

    @ApiModelProperty(value = "关注对象id")
    @TableField("FRIEND_ID")
    private Integer friendId;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_DATE")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "软删除，0为未删除，1为已删除")
    @TableField("FLAG")
    private Integer flag;


}
